package com.ruoyi.project.cms.sa.order.maintain.service;

import com.ruoyi.project.cms.sa.order.maintain.domain.OrderVO;
import com.ruoyi.project.cms.sa.order.maintain.mapper.OrderMapper;
import com.ruoyi.project.cms.sa.order.maintain.mapper.OrderVOMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：MrL
 * 时间：2020-05-20
 */
@Service
public class OrderServiceImpl implements IOrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Autowired
    private OrderVOMapper orderVOMapper;

    /**
     * 根据搜索条件分页查询订单信息
     *
     * @param orderVO
     * @return
     */
    @Override
    public List<OrderVO> selectOrderList(OrderVO orderVO) {
        return orderVOMapper.selectOrderVOList(orderVO);
    }

    /**
     * 根据订单ID查询订单信息
     *
     * @param orderId
     * @return
     */
    @Override
    public OrderVO selectOrderById(Long orderId) {
        return orderVOMapper.selectOrderById(orderId);
    }

    /**
     * 修改订单信息
     *
     * @param orderVO
     * @return
     */
    @Override
    public int updateOrderVO(OrderVO orderVO) {
        return 0;
    }
}
